/**
 * 
 */
package commons.base.http.example;

import commons.base.http.SimpleHttpClient;

/**
 * @author yuan<cihang.yuan@happyelements.com>
 * @since 1.7
 */
public class HttpTest2 {

	public static void main(String[] args) throws Exception{
		client2();

	}
	
	public static void client2()throws  Exception{
		
		System.err.println(SimpleHttpClient.newGet("http://localhost:8080/app")
		 .addHeader("Accept-Encoding", "gzip, deflate")
		.addFormField("a", "111")
		.addFormField("b", "222")
		.addFormField("c", "333")
		.execute());
		
		System.err.println(SimpleHttpClient.newPost("http://localhost:8080/app")
				.addFormField("a", "111")
				.addFormField("b", "222")
				.addFormField("c", "333")
				.execute());
		
	}
	
	
	

	
	

}
